/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-15
 * Time: 8:55
 */
public class MathUtils {
    // 静态字段
    public static final double PI = 3.14159;

    // 静态方法：加法
    public static int add(int a, int b) {
        return a + b;
    }

    // 静态方法：计算圆的面积
    public static double calculateCircleArea(double radius) {
        return PI * radius * radius;
    }

    public static void main(String[] args) {
        // 调用静态方法
        int sum = MathUtils.add(5, 3);
        System.out.println("Sum: " + sum); // 输出: Sum: 8

        // 调用静态方法计算圆的面积
        double area = MathUtils.calculateCircleArea(2.5);
        System.out.println("Circle Area: " + area); // 输出: Circle Area: 19.6349375
    }
}
